<script>
import Vue from 'vue'
import { mapGetters } from 'vuex'
import { Swipe, SwipeItem } from 'vant'
Vue.use(Swipe)
Vue.use(SwipeItem)

export default {
  data() {
    return {
      
    }
  },

  computed: {
    ...mapGetters(['filteredList'])
  }
}
</script>

<template>
  <div class="container">
    <van-swipe :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="li in filteredList(5)">
        <img :src="li.img" alt="">
      </van-swipe-item>
    </van-swipe>
  </div>
</template>


<style lang="scss" scoped>
.container {
  height: 0;
  font-size: 0;
  padding-bottom: 66.6666667%;
}

img {
  width: 100%;
}
</style>
